
export type HomeCarouselType = {
  click_count: number
  carousel_order: number
  carousel_url: string
  carousel_img: string
}


export type HomeCategoryType = {
  category_name: string
  category_id: string
  parent_id: string
  category_order: number
  children?: HomeCategoryType[]
}


export type MainJSXType = {
  list: HomeCategoryType[]
}


type categoryList = {
  type: "list",
  payload: HomeCategoryType[]
}


export type MainAction = categoryList;


export type recommendList = {
  brand_id: string
  brand_name: string
  category_id: string
  category_name: string
  hot: string
  id: number
  product_address: string
  product_count: number
  product_id: string
  product_money: number
  product_name: string
  product_order: number
  product_pic: string
  discount: number
}


export type productColor = {
  id: number
  product_color_count: number
  product_color_name: string
  product_color_pic: string
  product_id: string
}

type productInfoInfo = [string, string]

type productInfo = {
  pic: string[]
  info: productInfoInfo[]
}

export type productType = {
  pic: string[]
  color: productColor[]
  product: recommendList
  info: productInfo
}

export type ProductInfoComment = {
  comment_create_time: Date
  id: number
  product_id: string
  remark: string
  user_id: string
  username: string
}
